package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.AddContactWayReqDto;
import com.emm.yixun.common.app.AddContactWayResDto;
import com.emm.yixun.customer.service.app.CustomerServiceAppFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.AddContactWayReqVo;

/**
 * 修改首次接触方式
 * @author Administrator
 *
 */
@Service("addContactWayHander")
public class AddContactWayHander extends CommonAbstractHander{
	
	@Autowired
	private CustomerServiceAppFacade customerServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		AddContactWayReqVo req = (AddContactWayReqVo)reqDto;
		AddContactWayReqDto reqDto1 = req.getParams();
		BaseResponseDTO<AddContactWayResDto> res = new BaseResponseDTO<AddContactWayResDto>();
		AddContactWayResDto resDto = customerServiceAppFacade.addContactWay(reqDto1);
		res.setResData(resDto);
		return res;
	}
	
}
